import * as echarts from 'echarts/core';
import {
  BarChart,
  LineChart,
  PieChart,
  SunburstChart  // 新增旭日图导入
} from 'echarts/charts';
import {
  TitleComponent,
  TooltipComponent,
  GridComponent,
  DatasetComponent,
  TransformComponent,
  LegendComponent,
  ToolboxComponent,
} from 'echarts/components';
import { LabelLayout, UniversalTransition } from 'echarts/features';
import { CanvasRenderer } from 'echarts/renderers';

echarts.use([
  TitleComponent,
  TooltipComponent,
  GridComponent,
  DatasetComponent,
  TransformComponent,
  LegendComponent,
  ToolboxComponent,
  BarChart,
  PieChart,
  LineChart,
  SunburstChart,  // 注册旭日图组件
  LabelLayout,
  UniversalTransition,
  CanvasRenderer
]);

export default echarts;